package com.bdqn.rooms.beans;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jack
 * @since 2019-05-21
 */
public class Rooms extends Model<Rooms> {

    private static final long serialVersionUID = 1L;

    /**
     * 房间ID
     */
    @TableId(value = "roomid", type = IdType.AUTO)
    private Integer roomid;
    /**
     * 商家ID
     */
    private Integer Ruserid;
    /**
     * 房间类型ID
     */
    private Integer rtypeid;
    /**
     * 房间固定价格
     */
    private Double rprice;
    /**
     * 房间变动价格
     */
    private Double rpricetewer;
    /**
     * 图片路径
     */
    private String imgesurl;
    /**
     * 房间地址
     */
    private String address;
    /**
     * 状态 默认0.存入用户ID
     */
    private Integer state;
    /**
     * 热度进行星级显示
     */
    private Integer hot;
    /**
     * 房间名
     */
    private String roomname;
    /**
     * 房间描述
     */
    private String roomtes;


    public Integer getRoomid() {
        return roomid;
    }

    public void setRoomid(Integer roomid) {
        this.roomid = roomid;
    }

    public Integer getRuserid() {
        return Ruserid;
    }

    public void setRuserid(Integer Ruserid) {
        this.Ruserid = Ruserid;
    }

    public Integer getRtypeid() {
        return rtypeid;
    }

    public void setRtypeid(Integer rtypeid) {
        this.rtypeid = rtypeid;
    }

    public Double getRprice() {
        return rprice;
    }

    public void setRprice(Double rprice) {
        this.rprice = rprice;
    }

    public Double getRpricetewer() {
        return rpricetewer;
    }

    public void setRpricetewer(Double rpricetewer) {
        this.rpricetewer = rpricetewer;
    }

    public String getImgesurl() {
        return imgesurl;
    }

    public void setImgesurl(String imgesurl) {
        this.imgesurl = imgesurl;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getHot() {
        return hot;
    }

    public void setHot(Integer hot) {
        this.hot = hot;
    }

    public String getRoomname() {
        return roomname;
    }

    public void setRoomname(String roomname) {
        this.roomname = roomname;
    }

    public String getRoomtes() {
        return roomtes;
    }

    public void setRoomtes(String roomtes) {
        this.roomtes = roomtes;
    }

    @Override
    protected Serializable pkVal() {
        return this.roomid;
    }

    @Override
    public String toString() {
        return "Rooms{" +
        ", roomid=" + roomid +
        ", Ruserid=" + Ruserid +
        ", rtypeid=" + rtypeid +
        ", rprice=" + rprice +
        ", rpricetewer=" + rpricetewer +
        ", imgesurl=" + imgesurl +
        ", address=" + address +
        ", state=" + state +
        ", hot=" + hot +
        ", roomname=" + roomname +
        ", roomtes=" + roomtes +
        "}";
    }
}
